package com.guli.eduservice.controller;

import com.guli.commonutils.Result;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {

    @PostMapping("login")
    public Result login() {
        return Result.ok().data("token", "admin");
    }


    @GetMapping("info")
    public Result info() {
        return Result.ok().data("roles", "[admin]").data("name", "admin").data("avatar", "https://gdou-guli.oss-cn-guangzhou.aliyuncs.com/2022/12/02/a2fd75fb533044379c28dc07cc3abcd8file.png");
    }
}
